window.localStorageVersion = "",
    chrome.runtime.onMessage.addListener(function (t, o, e) {
    ilog("sender:", o, "msg:", t), "get_my_tab_id" === t.action && o.tab && e({tabId: o.tab.id})
}),
    (() => {
    const t = t => {
        const o = `${t}${window.localStorageVersion}`;
        return localStorage[o] === o
    };
    listenToMsg("getSupportDetail", ({msg: o, replyFunc: e}) => {
        e((() => ({
            support: "nosupport" !== localStorage.nosupport,
            detail: {
                autoFollow: t("autoFollow"),
                autoLike: t("autoLike"),
                autoFav: t("autoFav"),
                autoShare: t("autoShare"),
                autoFeed: t("autoFeed")
            }
        }))())
    })
    //     , listenToMsg("getConfigText", ({msg: t, replyFunc: o}) => {
    //     fetch(`http://csser.top/bilibili/config.txt?t=${Date.now()}`).then(t => t.text()).then(t => {
    //         o({config: t})
    //     })
    // })
})();